<template>
    <div style="background-color: cornflowerblue;">
        <h1>{{ msg }}</h1>
    </div>
</template>

<script>
export default{
    setup() {
        //promise对象中存放需要执行异步执行的代码
        return new Promise((resolve)=>{
            setTimeout(() => {
                resolve({
                    msg:"hello,让你久等了！"
                })
            },300);
        })
    }
}
</script>